import sys
from PySide2 import QtWidgets

from ui.main_window import MainWindow


def main():
    app = QtWidgets.QApplication(sys.argv)
    main_window = MainWindow()
    geometry = app.desktop().availableGeometry(main_window)
    main_window.resize(geometry.width() * 0.7, geometry.height() * 0.7)
    # self.setMinimumSize(geometry.width() * 0.64, geometry.height() * 0.56)
    main_window.show()
    sys.exit(app.exec_())


if __name__ == '__main__':
    main()
